<?php
echo time();// 当前时间的秒值
echo "<br>";

$time = time();
$arr = getdate($time);
var_dump($arr);
echo "<br>";

$format = "Y年m月d日 H:i:s a";
$dateStr = date( $format, $time );
echo $dateStr;
echo "<br>";

$t = mktime(15, 50, 30, 2, 20, 2020);
echo $t;
echo "<br>";
$format = "Y年m月d日 H:i:s a";
$dateStr = date( $format, $t );
echo $dateStr;
echo "<br>";


?>